<div id="top">
    <div class="menu">
    	<a href="{:U('/Admin/Instrument/index')}">图标管理</a>
    	 <a href="{:U('/Admin/Activity/index')}">活动管理</a>
    	 <a href="{:U('/Admin/User/index')}">用户管理</a>
        <a href="{:U('/Admin/Index/index')}">系统信息</a>
    </div>
    <div class="exit">
    	<span style="color: white;">欢迎您,{$sysuser.name}</span>
        <a href="{:U('/Admin/Index/logout')}" target="_self">退出</a>
    </div>
</div>
<script>
    var currentLink = document.location.href;
    $('.menu a').each(function() {
        if (currentLink.indexOf(this.href) != -1) {
            $(this).addClass('current');
        }
        $(this).bind('mouseover', function() {
            $(this).addClass('current');
        });
        $(this).bind('mouseout', function() {
            if (currentLink.indexOf(this.href) == -1) {
                $(this).removeClass('current');
            }
        });
    });
</script>